from Buiness.LoginPage1 import LoginPage1
from common.BasePage1 import BasePage1
class MainPage(BasePage1):
    def __init__(self,driver=None):
        super().__init__(driver)
        self.system_manage_loc = "xpath,//*[@id='s-menu-superadmin']/button"
        self.system_manage_frame_name="iframe-superadmin"
        self.assert_text_loc="link text, 签退"
    def enter_system_manage(self):
        self.click(self.system_manage_loc)
        self.into_frame(self.system_manage_frame_name)
        self.wait(2)
    def test_mainpage(self):
        lg=LoginPage1(driver=self.driver)
        lg.test_login()
        self.enter_system_manage()
    def get_assert_text(self):
        return self.get_ele_text(self.assert_text_loc)

if __name__ == '__main__':
    mp=MainPage()
    mp.test_mainpage()